package day6;
import java.util.*;
//>>> import java.time.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class DateTest {
    //日期
    public static void main(String[] args) {
        Date d=new Date();
        System.out.println(d);
        long time = d.getTime();
        System.out.println(time);
        System.out.println(System.currentTimeMillis());
        int year = d.getYear();
        int month=d.getMonth();
        int day=d.getDay();//星期几
        int date=d.getDate();
        int h=d.getHours();

    }
}
